-- GENERATED SPELL FOR [Focus Wizard] --


function spell0_26816(pUnit, Event) --@Arcane Focus,n/a--
pUnit:FullCastSpellOnTarget(51777,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26816', 523, 1)
end

function spell1_26816(pUnit, Event) --@Frostfire Bolt,n/a--
pUnit:FullCastSpellOnTarget(51779,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26816', 12000, 1)
end

function spell2_26816(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(49418,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26816', 3000, 1)
end

function Sorts_26816(pUnit, Event)
local choix_sorts_26816 = math.random(0, 2)
if choix_sorts_26816 == 0 then
pUnit:RegisterEvent('spell0_26816', 1, 1)
end
if choix_sorts_26816 == 1 then
pUnit:RegisterEvent('spell1_26816', 1, 1)
end
if choix_sorts_26816 == 2 then
pUnit:RegisterEvent('spell2_26816', 1, 1)
end
end

function mob26816_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26816', math.random(1500, 3000), 1)
end

function mob26816_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26816_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26816_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26816, 1, 'mob26816_Action')
RegisterUnitEvent(26816, 2, 'mob26816_Leave')
RegisterUnitEvent(26816, 3, 'mob26816_Kill')
RegisterUnitEvent(26816, 4, 'mob26816_Die')
